<?php
require_once('../includes/SmartyManager.class.php');
require_once('../includes/DB.class.php');
require_once('../includes/Verifier.class.php');
require_once('../includes/Filter.class.php');
require_once('../includes/ChukuFileAccountant.class.php');

$smarty = SmartyManager::getSmarty();

ini_set("max_execution_time",0);
ini_set( "memory_limit" , "128M");

$chuku = new ChukuFileAccountant($_GET['id']);
$smarty->assign('id', $_GET['id']);
$smarty->assign('filename', $_GET['filename']);
$chuku->execute();

$smarty->assign(array(
				'certificationNumber' 	=> 	$chuku->getCertificationNumber(),
				'certificationCodification' 		=> 	$chuku->getCertificationCodification(),
				'sequenceNumber' 		=> 	$chuku->getSequenceNumber(),
				'manufactory' 		=> 	$chuku->getManufactory(),
				'authenticationMark' 		=> 	$chuku->getAuthenticationMark(),
				'steelNumber' 		=> 	$chuku->getSteelNumber(),
				'size1' 		=> 	$chuku->getSize1(),
				'size2' 		=> 	$chuku->getSize2(),
				'size3' 		=> 	$chuku->getSize3(),
				'count'	=>	$chuku->getCount(),
				'unitWeight'		=>	$chuku->getUnitWeight(),
				'orderNumber'		=>	$chuku->getOrderNumber(),
				'orderSubitemNumber'		=>	$chuku->getOrderSubitemNumber(),
				'unitPrice'		=>	$chuku->getUnitPrice(),
				'materialNumber'		=>  $chuku->getMaterialNumber(),
				'consignmentBatch'	=>  $chuku->getConsignmentBatch(),
				'sampleBatch'		=>  $chuku->getSampleBatch(),
				'facheNumber'	=>  $chuku->getFacheNumber(),
				'purchaseNumber'	=>  $chuku->getPurchaseNumber(),
				'shipmentDate'	=>  $chuku->getShipmentDate(),
				'month'	=>  $chuku->getMonth(),
				'vehicleNumber'	=>  $chuku->getVehicleNumber(),
				'consignee'	=>  $chuku->getConsignee(),
				'handler'	=> $chuku->getHandler(),
				'remark'	=>  $chuku->getRemark()
		));

$smarty->display("fileChuku.html");
?>